﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using CGSR.Core;
using CGSR.Simulation;

namespace CGSR.GUI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
			string locationsFileName = @"Nomadic\Nomadic_1_U_100_X_100_Y_100_T_1000_maxSpd_1.txt";
			string trafficFileName = @"Traffic\Traffic_1_U100_T_1000_bz_10_asl10.txt";

            BenchmarkParser bp = new BenchmarkParser(@"..\..\..\CGSR.Simulation\Benchmarks\" + locationsFileName,
                                                     @"..\..\..\CGSR.Simulation\Benchmarks\" + trafficFileName);

            SimulationManager sm = new SimulationManager();
            sm.RunSimulation(bp.LocationsManager, bp.PacketsManager,@"..\..\..\CGSR.Simulation\Benchmarks\out.csv");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(bp,sm));
        }

        
    }
}
